#!/usr/bin/env python

import pickle
import time

DATA_PATH = '../data/'

def save(filename, dic):
    f = open(DATA_PATH + filename, 'w')
    pickle.dump(dic, f)
    f.close()
    del f


def load(filename):
    f = open(DATA_PATH + filename, 'r')
    dic = pickle.load(f)
    f.close()        
    del f        
    return dic

	
def printTime(string):
    print "[", time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), "] ", string

